package com.peter.proxy.hkgolden.core;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.google.inject.Guice;
import com.google.inject.Injector;

public class ContextHelper {

	protected static final Logger logger = LoggerFactory
			.getLogger(ContextHelper.class);

	public static Injector getInjector() {
		Injector injector = null;
		try {
			return Guice.createInjector(new ApplicationModuleTest());
			// return Guice.createInjector(new ApplicationModuleDev());
			// injector = Guice.createInjector(new ApplicationModuleSit());
		} catch (Exception e) {
			logger.warn("catched exception, return null");
		}
		return injector;
	}

}
